﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{

    public class JLNonstandardResponse
    {
        public string Name { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public int ChannelNo { get; set; }
        public string DeviceId { get; set; } = string.Empty;
        public JLNonstandardData Data { get; set; }
    }

    public class JLNonstandardData
    {
        public string CustomData { get; set; }
    }
    public class JLNonstandard
    {
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public string DeviceIp { get; set; }
        public int workmode { get; set; }
    }

    public class JLDisplaymsgResponse
    {
        public string Name { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public int ChannelNo { get; set; }
        public string DeviceId { get; set; } = string.Empty;
        public JLDisplaymsgData Data { get; set; }
    }

    public class JLDisplaymsgData
    {
        public string DisplaymsgData { get; set; }
    }
    public class JLDisplaymsg
    {
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public string DeviceIp { get; set; }
        public string DisplaymsgData { get; set; }
    }

    public class JLCommsgResponse
    {
        public string Name { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public string DeviceId { get; set; } = string.Empty;
        public JLCommsgData Data { get; set; }
    }

    public class JLCommsgData
    {
        public string ComData { get; set; }
    }

    public class JLHeartbead485msgResponse
    {
        public string Name { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public int ChannelNo { get; set; }
        public string DeviceId { get; set; } = string.Empty;
        public JLHeartbead485msgData Data { get; set; }
    }

    public class JLHeartbead485msgData
    {
        public string heartbeatData { get; set; }//心跳数据
        public int frequency { get; set; }//心跳频率
    }
    public class JLHeartbead485msg
    {
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public string DeviceIp { get; set; }
        //public string DisplaymsgData { get; set; }
    }

    public class JLNonstandardReturn
    {
        public string Name { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int Code { get; set; }
        public string Message { get; set; }
    }
    public class JLDoorUIResponse
    {
        public string Name { get; set; } = string.Empty;
        public string UUID { get; set; } = string.Empty;
        public string Session { get; set; } = string.Empty;
        public int TimeStamp { get; set; }
        public int ChannelNo { get; set; }
        public string DeviceId { get; set; } = string.Empty;
        public JLDoorUIData Data { get; set; }
    }

    public class JLDoorUIData
    {
        public string Name { get; set; }//公司名称
        public int NameEnabled { get; set; }//名称显示开关
        public int PictureEnabled { get; set; }//图片显示开关
        public string Picture { get; set; }//图片数据（base64编码）
    }
}
